﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="RssFeed" table="cmsRssFeed">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <property name="Name" type="System.String">
      <column name="Name" not-null="true" />
    </property>
    <property name="Description" type="System.String">
      <column name="Description" not-null="true" length="1000000" />
    </property>
    <property name="Filename" type="System.String">
      <column name="Filename" not-null="true" />
    </property>
    <bag name="Categories" table="cmsRssFeedCategory" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="RssFeedID" />
      </key>
      <many-to-many class="Category">
        <column name="CategoryID" />
      </many-to-many>
    </bag>
    <many-to-one class="Site" name="Site">
      <column name="SiteID" not-null="true" />
    </many-to-one>
    <many-to-one class="Page" name="ContentDisplayPage">
      <column name="ContentDisplayPageID" not-null="true" />
    </many-to-one>
    <bag name="RequiredUserGroups" table="cmsRssFeedRequiredUserGroup" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="RssFeedID" />
      </key>
      <many-to-many class="UserGroup">
        <column name="GroupID" />
      </many-to-many>
    </bag>
    <property name="ContentDisplayMode" type="NHibernate.Type.EnumStringType`1[[Cms.Domain.RssFeedContentDisplayMode, Cms.Domain]], NHibernate">
      <column name="ContentDisplayMode" length="20" not-null="true" />
    </property>
    <property name="RemoveImgTags" type="System.Boolean">
      <column name="RemoveImgTags" not-null="true" />
    </property>
    <property name="SortMode" type="NHibernate.Type.EnumStringType`1[[Cms.Domain.ContentSortMode, Cms.Domain]], NHibernate">
      <column name="SortMode" length="20" not-null="true" />
    </property>
  </class>
</hibernate-mapping>